Micron Document
`:top
`!JScript.Encode`! is a method created by `F33f`_`[Microsoft`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Microsoft]`_`f used to `F33f`_`[obfuscate`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Obfuscation_(software)]`_`f both server and `F33f`_`[Client-side JavaScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Client-side_JavaScript]`_`f or `F33f`_`[VB Script`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=VB_Script]`_`f source code in order to protect the `F33f`_`[source code`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Source_code]`_`f from `F33f`_`[copying`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Copying]`_`f.`:cite-ref-msse-1-0[`F5bf`_`[1`#cite-note-msse-1]`_`f] JavaScript code is used for creating `F33f`_`[dynamic web content`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dynamic_web_content]`_`f on many websites, with the source code easily viewable, so this was meant to protect the code.

The encoding is a simple `F33f`_`[polyalphabetic substitution`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Polyalphabetic_substitution]`_`f using three alphabets.`:cite-ref-vc-2-0[`F5bf`_`[2`#cite-note-vc-2]`_`f]

>>Contents

• `F0af`_`[How to use`#how-to-use]`_`f
• `F0af`_`[Weaknesses`#weaknesses]`_`f
• `F0af`_`[References`#references]`_`f
• `F0af`_`[External links`#external-links]`_`f

-─

>>How to use

A `F33f`_`[command line`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Command_line]`_`f script encoder can be used to encode scripts.`:cite-ref-msse-1-1[`F5bf`_`[1`#cite-note-msse-1]`_`f]`:cite-ref-3[`F5bf`_`[3`#cite-note-3]`_`f] To encode a `F33f`_`[HTML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=HTML]`_`f web-page file called default.htm, use the following command:

`B100`F9d9screnc.exe default.htm defaultenc.htm`f`b

It would output to a file called defaultenc.htm.

>>Weaknesses

It has been `F33f`_`[reverse engineered`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Reverse_engineering]`_`f`:cite-ref-vc-2-1[`F5bf`_`[2`#cite-note-vc-2]`_`f] and many websites provide an on-the-fly decoder.`:cite-ref-4[`F5bf`_`[4`#cite-note-4]`_`f]

>>References

`:cite-note-msse-1`!1.`! `F0af`_`[↑`#cite-ref-msse-1-0]`_`f `:citerefclinick1999`aClinick, Andrew (Aug 1999). "Script Encoding with the Microsoft Script Engine Version 5.0". `*Script Engine`*. Microsoft. Archived from the original on 2002-12-14.
`:cite-note-vc-2`!2.`! `F0af`_`[↑`#cite-ref-vc-2-0]`_`f "Breaking the Windows Script Decoder". `*Virtual Conspiracy`*. Archived from the original on 2013-12-08. Security by obscurity is a bad, bad idea. Instead of encouraging that approach, Microsoft should educate programmers to find other ways to store their passwords and sensitive data, and tell them that an algorithm or any other piece of code that needs to be 'hidden', is just bad design
`:cite-note-3`!3.`! `F0af`_`[↑`#cite-ref-3]`_`f `:citerefclinick1999`aClinick, Andrew (Aug 1999). "Clinick0899.exe". Microsoft. Archived from the original (program) on 2002-12-14. The command-line script encoder (screnc.exe) provides a simple mechanism for encoding HTML, ASP, SCT, VBScript, and JScript files. The Microsoft Script group developed it as an easy-to-use command-line tool that can be easily built into your existing deployment batch files
`:cite-note-4`!4.`! `F0af`_`[↑`#cite-ref-4]`_`f `:citereflee2012`aLee, Grey (Feb 15, 2012). "Windows Script Decoder". `*GitHub`*. Decoding `B100`F9d9JScript.Encoded`f`b

>>External links

• Windows Script Decoder

`c`F0af`_`[↑ Back to top`#top]`_`f`a